﻿@using WebEntities;
@using WebsiteUI.Extensions;

@{
    ViewBag.Title = "技术交流_城市垃圾处理网";
    ViewBag.ClassHead = "head_bg3";
}
<div class="main_l">
    <div class="pageTitle">
        <i class="bgPic fl"></i>
        <div class="fl">
            技术交流</div>
    </div>
    <div class="ad_show">
         @Html.Action("ADScroll", "PublicPartialView")
    </div>
    <div class="contentBox">
        <div class="con_bar">
            <span class="fl tit">科研院所</span> <span class="fr"><a href="/list/index/@((int)ViewBag.ResearchRoomID)">更多>></a></span>
            <div class="cls">
            </div>
        </div>
        <div class="con_Main">
        @{
            List<WI_News> list1 = ViewBag.ResearchRoomList as List<WI_News>;
            foreach (var news in list1)
            {
                <div class="con_m_show">
                    <div class="fl">
                        <img src="@(string.IsNullOrWhiteSpace(news.NewsCover) ? "/Resource/images/test3.png" : news.NewsCover)" alt="@news.NewsTitle" /></div>
                    <div class="con_m_info fr gray2">
            @{
                string htmlDescr = Server.HtmlDecode(news.Description);
                string plainDescr = HtmlWorkshop.StripHtml(htmlDescr ?? string.Empty);
            }
                        @Html.Raw(HtmlWorkshop.CutTitle(plainDescr ?? string.Empty, 45))<a class="linkColor" href="/detail/index/@news.NewsID" title="@news.NewsTitle" target="_blank">[详细]</a>
                    </div>
                    <div class="cls"></div>
                </div>
            }
        }
        </div>
    </div>
</div>
<div class="main_m">
    <div class="contentBox">
        <div class="tab">
            <ul>
                <li class="current">行业论文</li>
            </ul>
           <span><a href="/list/index/@((int)ViewBag.IndustryDocID)">更多&gt;&gt;</a></span>
        </div>
        <div class="tab-content">
            <div class="imp_area">
            @{
                List<WI_News> list2 = ViewBag.IndustryDocList as List<WI_News>;
                WI_News news1 = list2.FirstOrDefault();
                if (news1 != null)
                {
                    <h1 class="imp_txt"><a href="/detail/index/@news1.NewsID" title="@news1.NewsTitle" target="_blank">@HtmlWorkshop.CutTitle(news1.NewsTitle, 22)</a></h1>
                    news1 = list2.Skip(1).FirstOrDefault();
                    <h3 class="imp_subtxt">
                    @if (news1 != null)
                    {
                        <a href="/detail/index/@news1.NewsID" title="@news1.NewsTitle" target="_blank">@HtmlWorkshop.CutTitle(news1.NewsTitle, 19)</a>
                        news1 = list2.Skip(2).FirstOrDefault();
                        if (news1 != null)
                        {
                            @: | <a href="/detail/index/@news1.NewsID" title="@news1.NewsTitle" target="_blank">@HtmlWorkshop.CutTitle(news1.NewsTitle, 19)</a>
                        }
                    }
                    </h3>
                }
            }
            </div>
            <div class="imp_main">
                <div class="imp_m_t">
                @{
                    string defimg4 = "/Resource/images/test4.png";
                    //前面7条是较新的信息，后面8条是较旧的信息
                    var query = list2.Skip(3).Take(7);
                    WI_News tempNews1 = query.FirstOrDefault();
                    string tempImgPath1 = tempNews1 == null ? defimg4 : string.IsNullOrWhiteSpace(tempNews1.NewsCover) ? defimg4 : tempNews1.NewsCover;   
                }
                    <a href="@(tempNews1 == null ? "#" : "/detail/index/" + tempNews1.NewsID)" target="_blank"><img src="@tempImgPath1" alt="" /></a>
                    <div class="imp_m_info">
                        <ul>
                        @{
                            foreach (var news in query)
                            {
                                string mark = (news.Important == 2) ? "red" : "";
                                <li>· <a href="/detail/index/@news.NewsID" target="_blank" title="@news.NewsTitle" class="@mark">@HtmlWorkshop.CutTitle(news.NewsTitle ?? string.Empty, 22)</a></li>
                            }
                        }
                        </ul>
                    </div>
                    <div class="cls"></div>
                </div>
                <div class="imp_m_b">
                    <ul>
                    @{
                        var query1 = list2.Skip(10).Take(8);
                        foreach (var news in query1)
                        {
                            <li><span class="fl">· <a href="/detail/index/@news.NewsID" target="_blank" title="@news.NewsTitle">@HtmlWorkshop.CutTitle(news.NewsTitle ?? string.Empty, 22)</a></span>
                                <span class="gray fr">@((news.PubTime ?? news.CreateTime).ToString("yyyy-MM-dd"))</span> </li>  
                        }
                    }
                    </ul>
                </div>
            </div>
            <div class="cls">
            </div>
        </div>
    </div>
   
</div>
<div class="main_r">
    <div class="downl-box">
    <a class="downbg" href="/list/index/@((int)ViewBag.IndustryDocID)">
    会员免费下载论文
    </a>
    <div class="hander"><a href="/home/register">免费注册</a>  |  已是会员？<a href="/home/login">登录</a> </div>
    </div>
    <div class="contentBox">
        <div class="con_bar">
            <span class="fl tit">行业趋势</span><span class="fr"><a href="/list/index/@((int)ViewBag.IndustryTrendID)">更多>></a></span>
            <div class="cls">
            </div>
        </div>
        <div class="con_Main_2">
            <ul>
            @{
                List<WI_News> list3 = ViewBag.IndustryTrendList as List<WI_News>;
                foreach (var news in list3)
                {
                    <li><a href="/detail/index/@news.NewsID" target="_blank" title="@news.NewsTitle">@HtmlWorkshop.CutTitle(news.NewsTitle, 20)</a> </li>  
                }
            }
            </ul>
        </div>
    </div>
    <img src="/Resource/images/test2.png" width="190px" height="70px" />
</div>
<div class="cls">
</div>
<div class="ad_area" align="center">
    <img src="../../Resource/images/ad_test.png" width="950px" height="123px" />
</div>
